﻿using System.Collections.ObjectModel;
using Coniometer.Model;
using Prism.Mvvm;

namespace Coniometer.ViewModels
{
    public class SpaceSchemePageViewModel : BindableBase
    {
        private ObservableCollection<SpaceSchemeModel> _schemeCollection = new ObservableCollection<SpaceSchemeModel>();

        public ObservableCollection<SpaceSchemeModel> SchemeCollection
        {
            get => _schemeCollection;
            set
            {
                _schemeCollection = value;
                RaisePropertyChanged();
            }
        }

        public SpaceSchemePageViewModel()
        {
            for (var i = 1; i < 15; i++)
            {
                var model = new SpaceSchemeModel
                {
                    SpaceName = "空间方案123",
                    Region = $"区域{i}",
                    PointCount = 5,
                    SpaceSize = "30m²",
                    CleanLevel = "A",
                };
                SchemeCollection.Add(model);
            }
        }
    }
}